package JAVA;
public class  PetDog {
    public String name;
    public String color;
    public String barks;
    public String wag;

    public void wag() {
    }

    public void barks() {
    }


    public static void main(String[] args) {
        PetDog dogh = new PetDog(); //通过new实例化对象
        dogh.name = "阿黄";
        dogh.color = "黑黄";
        dogh.barks();
        dogh.wag();
        System.out.println(dogh.color);
        PetDog dogs = new PetDog();
        dogs.name = "阿黄";
        dogs.color = "黑黄";
        System.out.println(dogh.color);
        dogs.barks();
        dogs.wag();

    }
}